Learn how to create your own in-game currency by deploying and minting from an ERC20 contract. Understand the difference between fungible and non-fungible tokens.
project
in the top left and corner for what you want to create the currency for, and head to the contracts
section and select + Deploy new contract
View more contracts
deploy
to deploy your Sequence audited contract
name
and symbol
for your contract.
name
and symbol
later in the builder interface where it will update across the sequence stack, popular explorers do not reindex the information, so what you put first remainsconfirm
contracts
section
Write Contract
section
grantRole
section of the write contract tab navigation, complete with the following details:
bytes32 role
: 0x9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6
address account
: <Wallet Address>
Where the wallet address is just copied from the top right hand corner to be able to send tokens to your wallet
write
and signing the transaction in the popup window, like before
With a confirmation message showing Response Success
solidityPackedKeccak256("MINTER_ROLE")
in
solidity or ethers.solidityPackedKeccak256(ethers.toUtf8Bytes("MINTER_ROLE"))
in javascriptmint
card in the Write Contract
section and input your wallet address that you would like to receive tokens to and amount of tokens in 18 decimals. So for 100 tokens you would input: 100000000000000000000
Transactions
tab navigation